package com.hp.service.Impl;

import com.hp.service.FileService;
import com.hp.util.OssUtil;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@Service
public class FileServiceImpl implements FileService {


    @Override
    public String upload(MultipartFile file) throws IOException {
        return new OssUtil().uploadAliyun(file);
    }
}
